import { createRouter, createWebHistory, createWebHashHistory, RouteRecordRaw } from 'vue-router'
import { staticRoutes } from '@/router/route'

const router = createRouter({
    history: createWebHistory(),
    routes: staticRoutes,
})
router.beforeEach((to, from) => {
    console.log(to)
    if (to.fullPath === '/') return { path: '/demo/home', query: {} }
})
export default router
